﻿using JinfuyuanProject.Entity;
using JinfuyuanProject.Entity.Filter;
using JinfuyuanProject.Entity.Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JinfuyuanProject.Service.Interface
{
    public interface IMParturientService
    {
        /// <summary>
        /// 获取所有产妇信息
        /// </summary>
        /// <returns></returns>
        List<MParturient> GetList();
        /// <summary>
        /// 根据姓名获取产妇信息
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        MParturient GetModel(string name);
        /// <summary>
        /// 删除产妇信息
        /// </summary>
        /// <param name="Parturient"></param>
        /// <returns></returns>
        int Delete(MParturient Parturient);
        /// <summary>
        /// 添加产妇信息
        /// </summary>
        /// <param name="Parturient"></param>
        /// <returns></returns>
        int Insert(MParturient Parturient);
        /// <summary>
        /// 更新产妇信息
        /// </summary>
        /// <param name="Parturient"></param>
        /// <returns></returns>
        int Update(MParturient Parturient);
        Hashtable Query(ParturientFilter filter);
        Hashtable SearchName(string keywords);
    }
}
